<?php
namespace cosocket\application\managers;


class UserManager
{

    public static $userModels = [];

    public static function getUserModel($uid)
    {
        if (isset(self::$userModels[$uid])) {
            return self::$userModels[$uid];
        }
        return null;
    }

    public static function addUserModel($uid, $userModel)
    {
        self::$userModels[$uid] = $userModel;
    }

    public static function delUserModel($uid)
    {
        if (isset(self::$userModels[$uid])) {
            unset(self::$userModels[$uid]);
        }
    }

}